<#include "../common/_layout.html" />
<@head title="预定管理编辑">
<style type="text/css">
	.cll {
		background-color: #ddd;
	}
</style>
</@head>
<@layout menu='/reserve'>
<section class="content-header">
	<h1>
		舟山汇智智能科技有限公司
	</h1>
	<ol class="breadcrumb">
		<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
		<li><a href="#">lte</a></li>
		<li class="active">prj</li>
	</ol>
</section>
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<form action="${ctx}/reserve/save" method="post" role="form">
					<legend>添加/修改信息</legend>
					<input type="hidden" name="id" id="id" value="${reserve.id!}">
					<div class="form-group">
						<label for="reserve_id">订单编号</label>
						<input type="text" class="form-control" id="reserve_id" name="reserve_id" placeholder="订单编号" value="${reserve.reserve_id!}">
					</div>
					<div class="form-group">
						<label for="wxuser_id">微信号</label>
						<input type="number" class="form-control" id="wxuser_id" name="wxuser_id" placeholder="微信号" value="${reserve.wxuser_id!}">
					</div>
					<div class="form-group">
						<label for="name">姓名</label>
						<input type="text" class="form-control" id="name" name="name" placeholder="姓名" value="${reserve.name!}">
					</div>
					<div class="form-group">
						<label for="mobile">电话</label>
						<input type="text" class="form-control" id="mobile" name="mobile" placeholder="电话" value="${reserve.mobile!}">
					</div>
					<div class="form-group">
						<label for="peoper_num">就餐人数</label>
						<input type="number" class="form-control" id="peoper_num" name="peoper_num" placeholder="就餐人数" value="${reserve.peoper_num!}">
					</div>
					<div class="form-group">
						<label for="reserve_date">就餐时间</label>
						<input type="text" class="form-control" id="reserve_date" name="reserve_date" placeholder="就餐时间" value="${reserve.reserve_date!}">
					</div>
					<div class="form-group">
						<label for="needroom">是否需要包间</label>
						<select class="form-control" id="needroom" name="needroom" value="${reserve.needroom!}">
							<option value = "" disabled selected></option>
							<option value = "1" <#if reserve.needroom??&&reserve.needroom==1>selected="selected"</#if>>是</option>
							<option value = "0" <#if reserve.needroom??&&reserve.needroom==0>selected="selected"</#if>>否</option>
						</select>
					</div>
					<div class="form-group">
						<label for="insert_date">预定时间</label>
						<input type="date" class="form-control" id="insert_date" name="insert_date" value="<#if reserve.insert_date??>${reserve.insert_date?date}</#if>">
					</div>
					<div class="form-group">
						<label for="reservestate">订单状态</label>
						<select class="form-control" id="reservestate" name="reservestate" value="${reserve.reservestate!}">
							<option value = "" disabled selected></option>
							<option value = "0" <#if reserve.reservestate??&&reserve.reservestate==0>selected="selected"</#if>>暂没商家接单</option>
							<option value = "1" <#if reserve.reservestate??&&reserve.reservestate==1>selected="selected"</#if>>已有商家接单</option>
						</select>
					</div>
					<div class="form-group">
						<label for="store_id">商铺编号</label>
						<input type="number" class="form-control" id="store_id" name="store_id" placeholder="商铺编号" value="${reserve.store_id!}">
					</div>
					<div class="form-group">
						<label for="remerk">备注</label>
						<input type="text" class="form-control" id="remerk" name="remerk" placeholder="备注" value="${reserve.remerk!}">
					</div>
					<button type="submit" class="btn btn-primary">保存</button><button type="submit" class="btn btn-cancle" onclick="javascript :history.back(-1);">返回</button>
				</form>
			</div>
		</div>
	</div>
</section>
</@layout>
<@scripts>
<script type="text/javascript">
	$(document).ready(function(){

	});
</script>
</@scripts>